package cn.wanda.bi.sunshine.platform.server.client.wrapper;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import cn.wanda.bi.sunshine.platform.server.client.TencentIMClient;
import cn.wanda.bi.sunshine.platform.server.client.request.OpenimSendMsgRequest;

/**
 * Created by wangfupeng1
 */
@Component
public class TencentIMClientWrapper {
	public static final Logger logger = LoggerFactory.getLogger(TencentIMClientWrapper.class);

	@Autowired
	private TencentIMClient tencentIMClient;
	
    public String openimSendmsg(@RequestBody OpenimSendMsgRequest request,
                                        @RequestParam("identifier") String identifier,
                                        @RequestParam("sdkappid") int sdkAppId,
                                        @RequestParam("contenttype") String contentType,
                                        @RequestParam("random") int random,
                                        @RequestParam("usersig") String usersig
                                        ){
		return tencentIMClient.openimSendmsg(request, identifier, sdkAppId, contentType, random, usersig);
	}
	
}
